﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Rendering
{
    public class Grid:VisualElement
    {
        #region TextElement Override

        /// <summary>
        /// 创建渲染依赖的资源
        /// </summary>
        /// <param name="factory">资源工厂</param>
        internal override void CreateResources(IDrawingContext factory)
        {
            if (!CacheResult)
            {
#if WIN2D
                //TextLayout = Cache(factory.CreateTextLayout());
#endif
            }
        }

        public override void Dispose()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 开始渲染操作
        /// </summary>
        /// <param name="drawingContext"></param>
        internal override void Render(IDrawingContext drawingContext)
        {
            // make composition
            Composition(this);

#if WIN2D

#endif

        }

        #endregion        
    }
}
